using System;
using WCSFContrib.PageFlow;
using XmlPageFlowWithShoppingCartQuickstart.Store.BusinessLogic;

public partial class Checkout : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!IsPostBack)
		{
            fullNameTextbox.Text = User.Identity.Name;
			addressTextbox.Text = "555 Main Street";
			creditCardTextbox.Text = "111-111-111-111";
		}
	}

	protected void completeCheckoutButton_Click(object sender, EventArgs e)
	{
		Controller.CompleteCheckout(fullNameTextbox.Text, addressTextbox.Text, creditCardTextbox.Text);
	}

	public StoreController Controller
	{
		get { return new StoreController(PageFlowDirectory.Provider); }
	}
}